<%--
 *  File:    AgreementConfigFrm.jsp
 *  @Author: DC
 *  Date:    2011/09/13
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>
<%@ taglib uri="/WEB-INF/custom-tag.tld" prefix="custom" %>

<% //--------------------------------------  setting logger --%>

<%
  Category cat = Category.getInstance("jsp.VisitProcessFrm"); 
  //init param
  String privilegeCode = "11203";
  String strModuleName = "CRM";
  String pageName = "p_visitprocessfrm";
  //System.out.println("request:"+request.getParameter("isEdit"));
  //System.out.println("session:"+session.getAttribute("isEdit"));
  String isEdit=request.getParameter("isEdit");

  if(request.getParameter("isEdit")!=null){
  if("Y".equals(request.getParameter("isEdit"))) {
	  isEdit = "&isEdit=Y";
	}else if ("N".equals(request.getParameter("isEdit"))) {
		isEdit = "&isEdit=N";
	}else  {
		isEdit = null;
	}
  }
  if(session.getAttribute("isEdit")!=null){
	  if("Y".equals(session.getAttribute("isEdit"))) {
		  isEdit = "&isEdit=Y";
		}else if ("N".equals(session.getAttribute("isEdit"))) {
			isEdit = "&isEdit=N";
		}else  {
			isEdit = null;
		}
  }
%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/InitEdit.inc" %>
<%@ include file="/inc/FrmDefault.inc" %> 
<html>
<head>
<title>VisitProcessFrm</title>
<PageFlow:CheckPageFlow pageName="p_agreementconfigfrm"/>
<%
    String viewflag = "";
     if (pageContext.getAttribute("viewflag")!=null&&"view".equals((String)pageContext.getAttribute("viewflag"))) {
		viewflag = "&viewflag=view";
	}else{
        viewflag = "&viewflag=";
     }



    String strIsDefault = (String)pageContext.getAttribute("isdefault");
	if("Y".equals(pageContext.getAttribute("isdefault"))) {
		strIsDefault = "&isdefault=Y";
	}else if ("N".equals(pageContext.getAttribute("isdefault"))) {
		strIsDefault = "&isdefault=N";
	}else  {
		strIsDefault = null;
	}
	String zmylagreementconfigid = null;
	if(pageContext.getAttribute("zmylagreementconfigid") != null) {
		zmylagreementconfigid=((Integer)pageContext.getAttribute("zmylagreementconfigid")).toString();
	}
    zmylagreementconfigid=(zmylagreementconfigid==null)?"":("&zmylagreementconfigid="+zmylagreementconfigid);
    
    String isNew = (String)pageContext.getAttribute("isNew");
	if("Y".equals((String)pageContext.getAttribute("isNew"))) {
		isNew = "&isNew=Y";
	}else if ("N".equals((String)pageContext.getAttribute("isNew"))) {
		isNew = "&isNew=N";
	}else  {
		isNew = null;
	}
	  
	 // out.println("frm"+isEdit);
	String isdetail = (String)pageContext.getAttribute("isdetail");
	String strurl = null;
	if("Y".equals((String)pageContext.getAttribute("isdetail"))) {
		strurl = "AgreementConfigDetailEdit.jsp?"+OvalTools.randomURL()+"&languagecode="+JspHelper.filterNull( strFrmLanguageCode )+JspHelper.filterNull( zmylagreementconfigid)+JspHelper.filterNull( strIsDefault)+JspHelper.filterNull(isNew)+JspHelper.filterNull(viewflag)+JspHelper.filterNull(isEdit);
	}else{
		strurl = "AgreementConfigMain.jsp?"+OvalTools.randomURL()+ "&languagecode="+JspHelper.filterNull( strFrmLanguageCode )+JspHelper.filterNull( strIsDefault)+JspHelper.filterNull(zmylagreementconfigid)+JspHelper.filterNull(isNew)+JspHelper.filterNull(isEdit)+JspHelper.filterNull(viewflag)+JspHelper.filterNull(isEdit);
	}
%>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<frameset rows="70,*" frameborder="YES" border="0" framespacing="0" cols="*" bordercolor="#999999">
  <frame name="up" src="AgreementConfigHeaderEdit.jsp?<%= OvalTools.randomURL() %>&languagecode=<%=JspHelper.filterNull( strFrmLanguageCode )%><%=JspHelper.filterNull( strIsDefault)%><%=JspHelper.filterNull(zmylagreementconfigid)%><%=JspHelper.filterNull(isNew)%><%=JspHelper.filterNull(isEdit)%><%=JspHelper.filterNull(viewflag)%>" frameborder="NO" scrolling="NO">
  <frame name="down" src="<%=JspHelper.filterNull( strurl)%>" scrolling="yes" frameborder="NO" noresize >
</frameset>
<noframes> 
<body>
</body>
</noframes> 
</html>


